import React, { FC, useState } from "react"
import QuestionCard from "./questionCard"

const List2: FC = () => {
  const [questionList, setQuestionList] = useState([
    { id: "q1", title: "问卷1", isPublished: false },
    { id: "q2", title: "问卷2", isPublished: true },
    { id: "q3", title: "问卷3", isPublished: false },
    { id: "q4", title: "问卷4", isPublished: true },
  ])

  return (
    <div>
      <h1>问卷列表页2</h1>
      {questionList.map((q) => {
        const [id, title, isPublished] = q
        return <QuestionCard></QuestionCard>
      })}
    </div>
  )
}
export default List2
